package com.chartboost.sdk.Libraries;

import android.content.Context;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.provider.Settings.Secure;
import com.chartboost.sdk.Chartboost;
import com.chartboost.sdk.impl.al;
import com.chartboost.sdk.impl.am;

public class c
{
  public static String a()
  {
    return b.b(c());
  }

  private static String b()
  {
    if (d.c())
      return null;
    return b.b(b.a(e()));
  }

  private static byte[] c()
  {
    String str1 = d();
    String str2 = b();
    am localam = new am();
    localam.a("uuid", str1);
    localam.a("macid", str2);
    return new al().a(localam);
  }

  private static String d()
  {
    if (d.c())
      return null;
    return Settings.Secure.getString(Chartboost.sharedChartboost().getContext().getContentResolver(), "android_id");
  }

  private static byte[] e()
  {
    try
    {
      String str = ((WifiManager)Chartboost.sharedChartboost().getContext().getSystemService("wifi")).getConnectionInfo().getMacAddress();
      if ((str != null) && (!str.equals("")))
      {
        String[] arrayOfString = str.split(":");
        arrayOfByte = new byte[6];
        for (int i = 0; i < arrayOfString.length; i++)
          arrayOfByte[i] = Integer.valueOf(Integer.parseInt(arrayOfString[i], 16)).byteValue();
      }
    }
    catch (Exception localException)
    {
      return null;
    }
    byte[] arrayOfByte = null;
    return arrayOfByte;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.chartboost.sdk.Libraries.c
 * JD-Core Version:    0.6.2
 */